//
//  EGMGestureUtil.h
//  EGMLibrary
//
//  Created by hh on 16/7/6.
//  Copyright © 2016年 egoman. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface EGMGestureUtil : NSObject

+(void)addSwipeRecognizerTo:(UIView*)view
                     target:(id)target
            swipeLeftAction:(SEL)doNext
           swipeRightAction:(SEL)doPrevious;

+(void)addTapRecognizerTo:(UIView*)view
                   target:(id)target
                tapAction:(SEL)onTap;

+(void)addDoubleTapRecognizerTo:(UIView*)view
                         target:(id)target
                doubleTapAction:(SEL)onDoubleTap;

+(void)addSwipeRecognizerTo:(UIView*)view target:(id)target swipeUpAction:(SEL)doUp swipeDownAction:(SEL)doDown;

+(void)addLongPressRecognizerTo:(UIView*)view target:(id)target action:(SEL)action;
+(void)addPanRecognizerTo:(UIView*)view target:(id)target action:(SEL)action;
+(void)addPinchRecognizerTo:(UIView*)view target:(id)target action:(SEL)action;
+(void)addRotationRecognizerTo:(UIView*)view target:(id)target action:(SEL)action;
+(void)addScreenEdgeRecognizerTo:(UIView*)view target:(id)target action:(SEL)action;
@end
